<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>mukia</title>
<link rel="stylesheet" type="text/css" href="../css/style.css" />
<script src="../js/formValidator/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="../js/formValidator/formValidator-4.1.0.js" type="text/javascript" charset="UTF-8"></script>
<script src="../js/formValidator/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
<script language="javascript" src="../js/formValidator/DateTimeMask.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({formID:"form1",theme:"ArrowSolidBox",debug:false,submitOnce:true,
		onError:function(msg,obj,errorlist){
			$("#errorlist").empty();
			$.map(errorlist,function(msg){
				$("#errorlist").append("<li>" + msg + "</li>")
			});
			alert(msg);
		},
		submitAfterAjaxPrompt : '有数据正在异步验证，请稍等...',
		onShowClass : "",
		onFocusClass : "",
		onCorrectClass : ""
	});
	
	$("#name").formValidator({onShow:"请输入用户名",onFocus:"用户名至少5个字符,最多10个字符",onCorrect:"该个性域名可以注册"}).inputValidator({min:5,max:10,onError:"你输入的个性域名非法,请确认"});
	$("#email").formValidator({onShow:"请输入邮箱",onFocus:"邮箱6-100个字符,输入正确了才能离开焦点",onCorrect:"恭喜你,你输对了",defaultValue:"@"})
	.inputValidator({min:6,max:100,onError:"你输入的邮箱长度非法,请确认"})
	.regexValidator({regExp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",onError:"你输入的邮箱格式不正确"});
	;
	$("#password").formValidator({onShow:"请输入密码",onFocus:"至少6个长度",onCorrect:"密码合法"}).inputValidator({min:6,empty:{leftEmpty:false,rightEmpty:false,emptyError:"密码两边不能有空符号"},onError:"密码不能为空,请确认"});
	
});
	
</script>
</head>
<body>
	<form name="form1" id="form1" action="create!save" method="post">
		<table>
			<tr>
				<td>电子邮件：</td>
				<td><input type="text" id="email" name="email" /><br />
				</td>
				<td><div id="emailTip" style="width:280px"></div></td>
			</tr>
			<tr>
				<td>创建密码：</td>
				<td><input type="password" id="password" name="password" /><br />
				</td>
				<td><div id="passwordTip" style="width:280px"></div></td>
			</tr>
			<tr>
				<td>个性域名：</td>
				<td><input type="text" id="name" name="name" /><br />
				</td>
				<td><div id="nameTip" style="width:280px"></div></td>
			</tr>
		</table>
		<input type="submit" value="提交" />
	</form>
	<div id="output"></div>
</body>
</html>